<?php
class WPaymentAuthorizenetInstallInstall extends UInstallWorklet
{
	public function taskModuleParams()
	{
		return CMap::mergeArray(parent::taskModuleParams(),array(
			'name' => 'Authorize.NET',
            'apiLogin' => '',
            'apiTransactionKey' => '',
            'apiMD5Hash' => '',
            'sandbox' => '0',
            'cconly' => '',
		));
	}
	
	public function taskSuccess()
	{
		$config['modules']['payment']['modules']['authorizenet']['enabled'] = false;
		UHelper::saveConfig(Yii::getPathOfAlias('application.config.public.modules').'.php',$config);
		parent::taskSuccess();
	}
}